<?php

 class KT_start_moduleName {
 
        private $module_name = "";
        
        function __construct($module_name) {
                
                if(@is_dir('modules/'.$module_name)) {
                        $this->module_name = $module_name;                
                }
                
        }

        function get() {
                return $this->module_name;
        }
        
 }
 
 class KT_start_pageName {
        private $page_name     = "";
        private $page_function = "";
        
        function __construct($module_name, $page_name) {

                __kernel_start::onlyStartModule($module_name);
                global $init;
                
                $page = __kernel_start::si($module_name)->urls[$page_name];

                if(isset($page)) {
                        $this->page_name = $page_name;
                        $this->page_function = __kernel_start::si($module_name)->urls[$page_name];
                } else {
                        $this->page_name = __kernel_start::si($module_name)->urls['default'];
                        $this->page_function = __kernel_start::si($module_name)->urls[$this->page_name];
                }
        }
        
        function get($what = 'name') {
                if($what == 'name') {
                        return $this->page_name;
                } elseif ($what == 'function')
                        return $this->page_function;
        }
        
 }

?>
